package demo;

import cn.com.webxml.ArrayOfString;
import cn.com.webxml.WeatherWebService;
import cn.com.webxml.WeatherWebServiceSoap;

public class Test {
    public void  name(){
        //创建实例化对象
        WeatherWebService weatherWS = new WeatherWebService();
        //通过实例化对象创建接口
        WeatherWebServiceSoap serviceSoap = weatherWS.getWeatherWebServiceSoap();
        //传入城市，获取当前城市天气状况
        ArrayOfString arr = serviceSoap.getWeatherbyCityName("郑州");
        if(null != arr){
            //获取到对象转换成集合遍历
            for (String message: arr.getString()) {
                System.out.println(message);

                
            }
        }


    }
}
